//
//  IDCViewController.m
//  Hello World
//
//  Created by iD Student on 7/22/13.
//  Copyright (c) 2013 student. All rights reserved.
//

#import "IDCViewController.h"

@interface IDCViewController ()

@end

@implementation IDCViewController


- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (IBAction)changebackgroundtoblue:(id)sender {
 
    [self.view setBackgroundColor:[UIColor blueColor]];
}

- (IBAction)changebackgroundtobrown:(id)sender {
    
    [self.view setBackgroundColor:[UIColor brownColor]];
}

- (IBAction)changebackgroundtoblack:(id)sender {
    
    [self.view setBackgroundColor:[UIColor blackColor]];
    
}

     
- (IBAction)changeColor:(id)sender {
    UIButton *buttonPressed = (UIButton*)sender;
    if(buttonPressed == redButton)
    {
        [self.view setBackgroundColor:[UIColor redColor]];
        colorLabel.text = @"The color is red";
    }
    
}
     @end
